﻿@using TjZheng.Power.DataEntity;
@inherits CMSWebViewPage<IconInfo>
@{
    ViewBag.Title = "清理日志";
    Layout = "~/Views/Shared/_EditLayout.cshtml";
}

<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'center',border:false">
        <div class="top-block">
            @CurrentButtonTool.Create()
        </div>
        <form id="fr_iconinfo" method="post" enctype="multipart/form-data">
            @*@Html.AntiForgeryToken()*@
            <table class="tblContent">
                <colgroup>
                    <col class="colTitle">
                    <col class="colContent" />
                </colgroup>
                <tr>
                    <td>清理日志：</td>
                    <td>清理到
                        @Html.DateTimeBox("clearTime", DateTime.Now.AddDays(-1))
                        之前的日志
                    </td>
                </tr>
                <tr>
                    <td>日志模块：</td>
                    <td>
                        应用到
                        @Html.ComboBox("logModule", "", false, "", "/LogInfo/LogModuleList", null, "==全部==")
                        模块的日志
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>
@section Bottom{
    <script type="text/javascript">
        function SaveClear() {
            var objFormEntity = new FormEntity("#fr_iconinfo");
            objFormEntity.url = "/loginfo/saveclear?TransferID=@TransferID";
            objFormEntity.submitSuccess = function (InvokeResult) {
                if (InvokeResult.ResultCode == "Success") {
                    ShowMessage(InvokeResult.ResultMessage);
                    Back();
                } else {
                    ShowMessage(InvokeResult.ResultMessage);
                }
            };
            objFormEntity.isClearData = false;
            objFormEntity.submit();
        }
        function Back() {
            TransferToUrl("/loginfo/loginfoindex");
        }
    </script>
}